#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int i = 0;
	int max = 0;
	int arr[10] = { 0 };
	for (i = 0,max = 0; i <= 9; ++i)
	{
		scanf(" %d", &arr[i]);
		if (max <= arr[i])
			max = arr[i];
	}
	printf("%d\n", max);
	return 0;
}